package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Course;
import cn.wolfcode.crm.query.CourseQueryObject;

import java.util.List;

public interface CourseMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Course record);

    Course selectByPrimaryKey(Long id);

    List<Course> selectAll();

    int updateByPrimaryKey(Course record);

    /**
     * 分页
     * @param qo 查询参数
     */
    int queryForCount(CourseQueryObject qo);

    List<Course> queryForList(CourseQueryObject qo);
    //排序规则
}